package experiment1_bag;
import java.util.Random;
public class zimu_YorN {
    public static void main(String[] args) {
        Random r=new Random();
        System.out.println("z="+('z'+0)+"   A="+('A'+1)+"   数="+('z'-'A'));
        char b=(char)('A'+r.nextInt(57));
        System.out.println("随机生成字符为："+b);
        if(b>='A'&&b<='Z'){
            System.out.println("是大写字母");
        }
        else{
            System.out.println("不是大写字母");
        }
    }
}
